package com.lge.clock.alarmclock.adapter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author LGE Cappuccino
 */
public class WeatherInfo implements Parcelable{

	private String cityName;
	private String lowTemp;
	private String highTemp;
	
	private String weatherIcon;
	private String updateTime ;
    
	public static final Parcelable.Creator<WeatherInfo> CREATOR = new Parcelable.Creator<WeatherInfo>() {

		//@Override
		public WeatherInfo createFromParcel(Parcel source) {
			return new WeatherInfo(source);
		}

		//@Override
		public WeatherInfo[] newArray(int size) {
			return new WeatherInfo[size];
		}
	};
	public WeatherInfo() {
	 	
	}
	public WeatherInfo(Parcel source) {
		readFromParcel(source);
	}
	//@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(cityName);
		dest.writeString(lowTemp);
		dest.writeString(highTemp);
		
		dest.writeString(weatherIcon);
		dest.writeString(updateTime);
	}
	//@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	public final void readFromParcel(Parcel source){
		cityName = source.readString();
		lowTemp = source.readString();
		highTemp = source.readString();
		
		weatherIcon = source.readString();
		updateTime = source.readString();
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	
	public String getLowTemp() {
		return lowTemp;
	}
	public void setLowTemp(String lowTemp) {
		this.lowTemp = lowTemp;
	}
	
	public String getHighTemp() {
		return highTemp;
	}
	public void setHighTemp(String highTemp) {
		this.highTemp = highTemp;
	}
	public String getWeatherIcon() {
		return weatherIcon;
	}
	public void setWeatherIcon(String weatherIcon) {
		this.weatherIcon = weatherIcon;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
}